package com.huan.spring.resource.service;

import com.huan.spring.resource.dao.UserDao;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("myUserServiceImpl")
public class UserServiceImpl implements UserService {
    @Resource //不标识name，则根据属性名匹配注入
    private UserDao myUserDao;
    @Override
    public void add() {
        System.out.println("userService.....");
        myUserDao.add();
    }
}
